package com.smart.community.common.service.impl;

import com.smart.community.common.common.vo.SysRoleVo;
import com.smart.community.common.mapper.SysRoleOperationMapper;
import com.smart.community.common.service.RoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {
    @Resource
    private SysRoleOperationMapper roleOperationMapper;
    @Override
    public List<SysRoleVo> queryRoles(Integer userId) {
        return roleOperationMapper.selectRolesAndOperations(userId);
    }
}
